#ifndef GAUSSIANDIALOG_H
#define GAUSSIANDIALOG_H

#include <QDialog>

namespace Ui {
class GaussianDialog;
}

class GaussianDialog : public QDialog
{
    Q_OBJECT
    
public:
    explicit GaussianDialog(QWidget *parent = 0);
    ~GaussianDialog();

    void setRadius(int radius);
    void setSigma(double sigma);

signals:
    void radiusChanged(int);
    void sigmaChanged(double);
    void applyFilter(QString);
    void cancelFilter();

protected:
    void closeEvent(QCloseEvent *event);
    void paintEvent(QPaintEvent *);
    void showEvent(QShowEvent *);

private:
    Ui::GaussianDialog *ui;

private slots:
    void setSpinBoxValue(int);
    void setSliderValue(double);
    void emitRadiusChanged(int);
    void applyButtonClicked();
    void cancelButtonClicked();
};

#endif // GAUSSIANDIALOG_H
